﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">用户数据</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">用户组列表</a></span>
            <div class="z-f-r"><span class="user-t">当前语言为：</span><span class="user-info"><?php echo $GLOBALS['langdata'][$GLOBALS['langtype']] ;?></span><!-- <a href="#">退出</a> --></div>
        </div>
        <div class="top-menu">
        	<ul>
            	<li class="current"><a href="#">用户组列表</a></li>                                  
                <li><a href="index.php?app=role&act=add"  target="mainframe">新增用户组</a></li>				
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">

    <table  class="data" >
        <thead>
		
	<th>用户组名称</th>
	<th>权限设置</th>
	<th>操作</th>			
        </thead>
	    <tbody>
		
<?php foreach((array)$roledata as $_key => $_value ) { ?>
	
<tr  >
	<td>&nbsp;&nbsp;<input type="text" value="{$_value.role_name}" name="title"  onchange="ato_url('index.php?app=role&act=lname&id={$_value.role_id}',this);" maxlength="25"/></td>

	<td align="center">
    	                                 <select name="data[power]"  onchange="ato_url('index.php?app=role&act=power&id={$_value.role_id}',this);">
 		                                       <option  value="">请选择...</option>                                        
                                          <?php foreach((array)$role_file as $_key => $_value1 ) { ?>                                     
		                                       <option  value="{$_value1}">{$_value1}</option>                                       
		                                   <?php } ?>
	                                     </select>
    </td>
	<td align="center">
<?php if(definerole($_value.role_id)) { ?>
...
<?php } else { ?>


	<a href="?app=role&act=edit&id={$_value.role_id}" target="mainframe">修改</a>&nbsp;
		<a onClick="return confirm('确认删除该用户组？该组下的成员将会全部合并到[普通会员]系统组中。');" href="?app=role&act=del&id={$_value.role_id}">删除</a>
		<?php } ?>
	</td>
</tr>	

<?php } ?>



	    </tbody>
    </table>
	

	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span></div>
    </div>
</div>
<!--{inc(footer.view.html)}-->